{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "cbae8973-75d3-4513-bddb-40639396604c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "            日期       开盘       收盘       最高       最低    成交量           成交额    振幅  \\\n",
      "0   2024-04-15  9146.20  9336.99  9350.21  9146.05  35818  5.960816e+09  2.23   \n",
      "1   2024-04-16  9299.36  9322.02  9370.06  9266.75  26266  4.382797e+09  1.11   \n",
      "2   2024-04-17  9311.97  9306.94  9348.15  9261.72  24819  4.130322e+09  0.93   \n",
      "3   2024-04-18  9266.80  9325.94  9387.24  9262.63  26568  4.445488e+09  1.34   \n",
      "4   2024-04-19  9275.69  9204.64  9314.48  9177.71  23500  3.879233e+09  1.47   \n",
      "5   2024-04-22  9241.62  9347.44  9366.64  9196.40  29951  5.001685e+09  1.85   \n",
      "6   2024-04-23  9347.14  9433.97  9447.64  9347.14  24980  4.217855e+09  1.08   \n",
      "7   2024-04-24  9457.59  9440.60  9472.31  9389.00  17086  2.893556e+09  0.88   \n",
      "8   2024-04-25  9424.17  9437.79  9450.65  9383.57  14476  2.447184e+09  0.71   \n",
      "9   2024-04-26  9442.61  9520.15  9543.11  9442.51  30996  5.290249e+09  1.07   \n",
      "10  2024-04-29  9457.44  9492.86  9613.46  9441.71  41332  7.072097e+09  1.80   \n",
      "11  2024-04-30  9497.94  9497.89  9622.90  9497.89  30760  5.273902e+09  1.32   \n",
      "12  2024-05-06  9643.45  9775.26  9799.37  9608.43  59909  1.050435e+10  2.01   \n",
      "13  2024-05-07  9803.34  9824.50  9863.69  9757.57  24925  4.413196e+09  1.09   \n",
      "14  2024-05-08  9822.94  9794.20  9824.35  9752.49  14769  2.603294e+09  0.73   \n",
      "15  2024-05-09  9764.20  9754.15  9799.27  9724.00  22387  3.929805e+09  0.77   \n",
      "16  2024-05-10  9779.78  9668.63  9813.85  9643.56  26207  4.571398e+09  1.75   \n",
      "17  2024-05-13  9633.66  9502.91  9636.87  9478.89  37662  6.435416e+09  1.63   \n",
      "\n",
      "     涨跌幅     涨跌额   换手率  \n",
      "0   2.14  195.71  0.29  \n",
      "1  -0.16  -14.97  0.21  \n",
      "2  -0.16  -15.08  0.20  \n",
      "3   0.20   19.00  0.21  \n",
      "4  -1.30 -121.30  0.19  \n",
      "5   1.55  142.80  0.24  \n",
      "6   0.93   86.53  0.20  \n",
      "7   0.07    6.63  0.14  \n",
      "8  -0.03   -2.81  0.12  \n",
      "9   0.87   82.36  0.25  \n",
      "10 -0.29  -27.29  0.33  \n",
      "11  0.05    5.03  0.24  \n",
      "12  2.92  277.37  0.48  \n",
      "13  0.50   49.24  0.20  \n",
      "14 -0.31  -30.30  0.12  \n",
      "15 -0.41  -40.05  0.18  \n",
      "16 -0.88  -85.52  0.21  \n",
      "17 -1.71 -165.72  0.30  \n"
     ]
    }
   ],
   "source": [
    "\"\"\"\n",
    "Author: Lucas\n",
    "Date: 2024-05-13 03:05:25\n",
    "LastEditors: Lucas\n",
    "LastEditTime: 2024-05-13 03:06:12\n",
    "Description: file content\n",
    "\"\"\"\n",
    "\n",
    "import akshare as ak\n",
    "\n",
    "start_date = \"20240413\"\n",
    "end_date = \"20240513\"\n",
    "\n",
    "stock_zh_a_hist_df = ak.stock_zh_a_hist(\n",
    "    symbol=\"600519\",\n",
    "    period=\"daily\",\n",
    "    start_date=start_date,\n",
    "    end_date=end_date,\n",
    "    adjust=\"hfq\",\n",
    ")\n",
    "print(stock_zh_a_hist_df)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0eb0faa3-f473-4361-8d61-19d5e560ac5a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
